enyo.kind({
    name: "MyApps.Advantages",
    kind: enyo.VFlexBox,
    events: {
        onBack: "",
    },
    
    components: [{
        name: "pane",
        kind: "Pane",
        flex: 1,
        transitionKind: "enyo.transitions.LeftRightFlyin",
        components: [{
            name: "menu",
            kind: "VFlexBox",
            className: "bg-gp",
            components: [{
                kind: "PageHeader",
                className: "enyo-header-dark",
                components: [{
                    kind: "IconButton",
                    onclick: "doBack",
                    icon: "images/menu-icon-back.png",
                    className: "enyo-button-dark"
                }, {
                    kind: "VFlexBox",
                    flex: 1,
                    align: "center",
                    components: [{
                        content: "Les services + Golf Plus"
                    }, ]
                }, ]
            }, {
                kind: "Button",
                className: "enyo-button-affirmative",
                caption: "Contrat prix",
                onclick: "showStores"
            }, {
                kind: "Button",
                className: "enyo-button-affirmative",
                caption: "Contrat 21 jours",
                onclick: "showcontract21days"
            }, {
                kind: "Button",
                className: "enyo-button-affirmative",
                caption: "Contrat reprise",
                onclick: ""
            }, ]
        }, {
            name: "contract21days",
            kind: "MyApps.Contract21Days",
            lazy: true,
            onBack: "goBack",
        }]
    
    
    
    }, ],
    
    showcontract21days: function(){
        this.$.pane.selectViewByName("contract21days");
    },
    
    goBack: function(inSender, inEvent){
        this.$.pane.back(inEvent);
    }
});

